package com.legendshop.openportal.sdk.model.request;


import com.legendshop.openportal.sdk.model.BaseRequest;
import com.legendshop.openportal.sdk.model.constants.ApiPathConstants;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @Description: 验证地址有效性
 * @Author lwj
 * @data 2024/6/19
 **/
@Data
public class CheckAreaRequest extends BaseRequest {


	private static final long serialVersionUID = -1992582328997809247L;
	/**
	 * 一级地址ID
	 */
	@NotNull(message = "一级地址ID不能为空")
	@ApiModelProperty(value = "一级地址ID")
	private Long province;

	/**
	 * 二级地址ID
	 */
	@NotNull(message = "二级地址ID不能为空")
	@ApiModelProperty(value = "二级地址ID")
	private Long city;

	/**
	 * 三级地址ID
	 */
	@NotNull(message = "三级地址ID不能为空")
	@ApiModelProperty(value = "三级地址ID")
	private Long area;

	/**
	 * 四级地址ID（若三级地址下无四级地址传0）
	 */
	@NotNull(message = "四级地址ID不能为空")
	@ApiModelProperty(value = "四级地址ID(若三级地址下无四级地址传0)")
	private Long town;


	@Override
	@ApiModelProperty(hidden = true)
	public String getApiPath() {
		return ApiPathConstants.CHECK_AREA;
	}
}
